﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MP3Ganizer.BusinessObject.Services.Configuration.Builders
{
    class SourceBuilder : IConfigurationBuilder
    {
        public void SetInfo(DataToPersist.LocalConfiguration config, object newValue, object oldValue)
        {
            var newString = newValue as string;

            config.SourceDirectory = newString;
        }


        public object GetInfo(DataToPersist.LocalConfiguration localConfiguration)
        {
            return localConfiguration.SourceDirectory;
        }


        public void DeleteInfos(DataToPersist.LocalConfiguration _localConfiguration, object p)
        {
            throw new NotImplementedException();
        }



        public void GetInfosObservable(DataToPersist.LocalConfiguration localConfiguration, System.Collections.ObjectModel.ObservableCollection<string> infos)
        {
            throw new NotImplementedException();
        }
    }
}
